import request from '@/utils/request'

// 查询列表1
export function listProjct(query) {
    return request({
        url: '/lims/task/progress/project/list',
        method: 'get',
        params: query
    })
}

// 查询表单3
export function getCyrwdFrom(projectId) {
    return request({
        url: '/lims/task/progress/cyTask/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表3
export function getCyrwdList(query) {
    return request({
        url: '/lims/task/progress/cyTask/list',
        method: 'get',
        params: query
    })
}

// 采样任务单根据sFId获取taskId  接口
export function getTaskIds(sFId) {
    return request({
        url: '/lims/task/progress/cyTask/' + sFId,
        method: 'get',
    })
}

// 查询表单4
export function getYsjlbFrom(projectId) {
    return request({
        url: '/lims/task/progress/localWrite/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表4
export function getYsjlbList(query) {
    return request({
        url: '/lims/task/progress/localWrite/list',
        method: 'get',
        params: query
    })
}
// 查询表单5
export function getYpjjFrom(projectId) {
    return request({
        url: '/lims/task/progress/sampleWith/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表5
export function getYpjjList(query) {
    return request({
        url: '/lims/task/progress/sampleWith/list',
        method: 'get',
        params: query
    })
}

// 查询表单6
export function getYplqFrom(projectId) {
    return request({
        url: '/lims/task/progress/sampleGet/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表6未领取
export function getNoWithList(query) {
    return request({
        url: '/lims/task/progress/sampleGet/list',
        method: 'get',
        params: query
    })
}

// 查询列表6已领取
export function getWithData(projectId) {
    return request({
        url: '/lims/task/progress/sampleGet/getList/' + projectId,
        method: 'get',
    })
}

// 查询表单7
export function getFxypdFrom(projectId) {
    return request({
        url: '/lims/task/progress/analysisSample/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表7
export function getFxypdList(query) {
    return request({
        url: '/lims/task/progress/analysisSample/list',
        method: 'get',
        params: query
    })
}

// 查询表单8
export function getSysysjlFrom(projectId) {
    return request({
        url: '/lims/task/progress/labRecord/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表8
export function getSysysjlList(query) {
    return request({
        url: '/lims/task/progress/labRecord/list',
        method: 'get',
        params: query
    })
}

// 查询表单9
export function getBgpsForm(projectId) {
    return request({
        url: '/lims/task/progress/report/statistic/' + projectId,
        method: 'get',
    })
}

// 查询列表9
export function getBgpsList(query) {
    return request({
        url: '/lims/task/progress/report/list',
        method: 'get',
        params: query
    })
}

// 查询基本信息
export function getTempleateView(projectId) {
    return request({
        url: '/lims/contract/project/' + projectId,
        method: 'get',
    })
}

// 查询时间线
export function getTimeLine(projectId) {
    return request({
        url: '/lims/task/progress/task/' + projectId,
        method: 'get',
    })
}

// 查询对应时间线的列表
export function getLineItem(projectId, order) {
    return request({
        url: `/lims/task/progress/taskList/${projectId}/${order}`,
        method: 'get',
    })
}

// 获取数量表单
export function getCountForm(projectId, order) {
    return request({
        url: `/lims/task/progress/task/localWrite/${projectId}/${order}`,
        method: 'get',
    })
}

// 检测内容列表
export function getJcnrList(query) {
    return request({
        url: '/lims/task/progress/content',
        method: 'get',
        params: query
    })
}

// 检测类别级联检测点位
export function getPointTable(query) {
    return request({
        url: '/lims/app/localWrite/pointList',
        method: 'get',
        params: query
    })
}

// 查询首页方案进度列表
export function queryProgressList(query) {
    return request({
        url: `/lims/task/progress/homeProgress`,
        method: 'get',
        params: query
    })
}
// 查询方案进度列表2
export function queryProgressListOfProject(query) {
    return request({
        url: `/lims/task/progress/progressList`,
        method: 'get',
        params: query
    })
}

// 查询方案汇总
export function queryProgressStatisticsOfProject(query) {
    return request({
        url: `lims/task/progress/progressStatistics`,
        method: 'get',
        params: query
    })
}

export function getProgress(projectId){
    return request({
        url: `lims/task/progress/asyProjectProgress/` + projectId,
        method: 'get',
    })
}

export function isSyProject(projectId){
    return request({
        url: `lims/contract/project/sampleType/` + projectId,
        method: 'get',
    })
}
